Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: OpenDoc Class Reference /
Part 1 - Classes and Methods


ODDesc

Superclasses
ODObject
Subclasses
ODOSLToken, ODObjectSpec, ODAddressDesc, and ODDescList

An object of the ODDesc class is a wrapper for a descriptor structure (type AEDesc), the basic structure used for building Apple event attributes and parameters.

Description

An Apple event descriptor structure consists of a handle to data and a descriptor type that identifies the type of data to which the handle refers. An object of the ODDesc class stores the actual data. To use the Apple Event Manager functions on an ODDesc object, you must first extract the data from it and then create a descriptor structure from that data.

The ODDesc class provides methods for placing and extracting the Apple event descriptor it contains. To convert from an ODDesc descriptor object to type AEDesc, you may copy the raw data and the descriptor type using the utility routines ODDescToAEDesc and AEDescToODDesc.

For more information on Apple events and the AEDesc type, see the "Introduction to Apple Events" chapter of Inside Macintosh: Interapplication Communication. For general information on scripting support in OpenDoc, see the chapter on semantic events and scripting in the OpenDoc Programmer's Guide for the MacOS.

Methods

This section presents summary descriptions of the ODDesc methods grouped according to purpose, followed by detailed descriptions in alphabetical order.

Initializing

InitODDesc
Initializes this descriptor object.
Accessing Descriptor Data

GetDescType
Returns the descriptor type of this descriptor object.
SetDescType
Sets the descriptor type of this descriptor object.
GetRawData
Returns the raw data contained in this descriptor object.
SetRawData
Assigns the specified raw data to this descriptor object; any previous data is deleted.

Methods
GetDescType
GetRawData
InitODDesc
SetDescType
SetRawData

Previous Book Contents Book Index Next

© Apple Computer, Inc.
17 JUL 1996




Navigation graphic, see text links

Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help